package com.gxa.myshiro.service.impl;

import com.gxa.myshiro.dao.UserMapper;
import com.gxa.myshiro.pojo.User;
import com.gxa.myshiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @program:
 * @description:
 * @author: Allen
 * @create: 2019/7/29 19:47
 **/
@Service
@Transactional(rollbackFor = Exception.class)
@SuppressWarnings("all")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User getUser(String userName) {
        return userMapper.findByUserName(userName);
    }
}
